package com.fourthGroup.service;

import com.fourthGroup.model.Order;
import com.fourthGroup.utils.Result;

import java.util.Map;

public interface OrderService {
    //    根据id查询Order

     void addOrder(Order order);

     Order queryOrderById(Long oid);

     void updateOrderStatus(Long oid);



    // 添加订单
    Order addOrder(Integer uid, Integer pid);

    // 使用Result对象返回
    Result<Order> createOrder(Order order);
    
    Result<Order> getOrder(Long oid);
    
    // 应用优惠券
    Result<Double> applyCoupon(String orderId, Long couponId);
}


